<template>
  <view class="offline-page">
    <view class="offline-content">
      <text class="offline-icon">📡</text>
      <text class="offline-title">服务器离线</text>
      <text class="offline-message">好友功能需要服务器在线才能使用</text>
      <text class="offline-hint">请检查网络连接后重试</text>
      <button class="retry-btn" @click="$emit('retry')">重试连接</button>
    </view>
  </view>
</template>

<script>
export default {
  name: 'OfflineStatus'
}
</script>

<style scoped>
.offline-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.offline-content {
  text-align: center;
  padding: 60rpx;
}

.offline-icon {
  font-size: 120rpx;
  display: block;
  margin-bottom: 32rpx;
  opacity: 0.6;
}

.offline-title {
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 16rpx;
}

.offline-message {
  font-size: 26rpx;
  color: #666;
  display: block;
  margin-bottom: 12rpx;
}

.offline-hint {
  font-size: 22rpx;
  color: #999;
  display: block;
  margin-bottom: 40rpx;
}

.retry-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12rpx;
  padding: 24rpx 48rpx;
  font-size: 26rpx;
  font-weight: bold;
}

.retry-btn:active {
  opacity: 0.8;
}
</style>

